-- UNITDEF -- kawnheavy_iii --
--------------------------------------------------------------------------------

local unitName = "kawnheavy_iii"

--------------------------------------------------------------------------------

local unitDef = {
  acceleration       = 1.25,
  brakeRate          = 1.25,
  buildCostMetal     = 10,
  canAttack          = true,
  canMove            = true,
  canstop            = 1,
  category           = [[PAWN UNARMORED UNIT TARGET]],
  collisionvolumetest = 1,
  corpse              = [[DEAD]],
  description        = [[Armor Lv 3]],
  energyMake         = 0,
  energyStorage      = 0,
  explodeAs          = [[Death]],
  footprintX         = 2,
  footprintZ         = 2,
  iconType           = [[PAWN]],
  idleAutoHeal       = 10,
  idleTime           = 300,
  levelGround        = false,
  maxDamage          = 563,
  maxVelocity        = 2.5,
  metalMake          = 0,
  metalStorage       = 0,
  movementClass      = [[medium]],
  name               = [[Haetae Medium Tank]],  ---K: Haetae=lion dog 
  noChaseCategory    = [[NOTARGET]],
  objectName         = [[kawnheavy_iii.s3o]],
  radarDistance      = 0,
  reclaimable        = false,
  seismicSignature   = 1,
  selfDestructAs     = [[Death]],
  selfDestructCountdown = 1,
  showNanoFrame      = false,
  sightDistance      = 800,
  smoothAnim         = false,
  turnRate           = 400,
  unitname           = [[kawnheavy_iii]],
  upright            = false,
  sfxtypes = {
    explosiongenerators = {
[[custom:flashmuzzle1]],
[[custom:burning]],
    },
  },
  -- sounds = {
    -- arrived = {
      -- [[commandgiven]],
    -- },
    -- ok = {
      -- [[commandgiven]],
    -- },
    -- select = {
      -- [[select]],
    -- },
  -- },
  weapons = {
    -- [2]  = {
      -- def                = [[wep2]],	-- see comment at pawnclose
      -- onlyTargetCategory = [[TARGET]],
    -- },
    [1]  = {
      def                = [[hiiiwep1]],
      onlyTargetCategory = [[TARGET]],
    },
  },
}


--------------------------------------------------------------------------------

local weaponDefs = {
  hiiiwep1 = {
	id  = 3,
    name = [[Tank Cannon]],
	rendertype = 4,
	ballistic = 1,
	turret = 1,
	energypershot = 0,
	range = 605,
	reloadtime = 3,
	weaponvelocity = 900,
	areaofeffect = 20,
	edgeeffectiveness = 1,
	soundstart = [[Cannon]],
	soundhit = [[shortexplo]],
	firestarter = 50,
	accuracy = 800,
	aimrate = 300,
	tolerance = 300,
	holdtime = 1,
explosiongenerator = [[custom:SMALLMISSILE_EXPLOSION]],
	impulsefactor = 0,
	impulseBoost = 0,
	craterMult = 0,
	craterBoost = 0,
	startsmoke = 1,
	InterceptedByShieldType = 2,

    damage = {
      default            = 90,
				},
	},
 }
unitDef.weaponDefs = weaponDefs

local featureDefs = {
    DEAD  = {
      description      = [[Wreckage - pawn]],
      blocking         = true,
      category         = [[corpses]],
      damage           = 1000,
      energy           = 0,
	  featureDead      = [[HEAP]],
      featurereclamate = [[SMUDGE01]],
      footprintX       = 2,
      footprintZ       = 3,
      height           = [[20]],
      hitdensity       = [[100]],
      metal            = 0,
      object           = [[pawnheavy_iii_dead.s3o]],
      reclaimable      = false,
      reclaimTime      = 0,
      world            = [[All Worlds]],
    },
	
	 HEAP  = {
      description      = [[Debris - pawn]],
      blocking         = true,
      category         = [[heaps]],
      damage           = 500,
      energy           = 0,
      featurereclamate = [[SMUDGE01]],
      footprintX       = 3,
      footprintZ       = 3,
      height           = [[4]],
      hitdensity       = [[100]],
      metal            = 0,
      object           = [[tank_heap.s3o]],
      reclaimable      = false,
      reclaimTime      = 0,
      seqnamereclamate = [[TREE1RECLAMATE]],
      world            = [[All Worlds]],
    },
  }
  unitDef.featureDefs = featureDefs


--------------------------------------------------------------------------------

return lowerkeys({ [unitName] = unitDef })

--------------------------------------------------------------------------------
